var userIpt = document.getElementById("username")
var pwdIpt = document.getElementById("password")

var lableUs = document.getElementById("lableUs")
var lablePw = document.getElementById("lablePw")

function userIptChange()
{
    console.log("cao")
    var val = userIpt.value
    if(val != '')
    {
        lableUs.className="inputing"
    }
    else
    {
        lableUs.className=""
    }
}

function pwdIptChange()
{
    console.log("cao")
    var val = pwdIpt.value
    if(val != '')
    {
        lablePw.className="inputing"
    }
    else
    {
        lablePw.className = ""
    }
}

function a()
{
    alert("a")
}

// var cok = document.cookie

// alert(cok)

// function login()
// {
//     if(userIpt.value != '' && pwdIpt.value != '')
//     {
//         var d = new Date()
//         d.setTime(d.getTime()+(exdays*24*60*60*1000))
//         var exp = "expires="+d.toTimeString();
//         document.cookie='username=little_suns;'+exp+'path=/'
//     }
// }
